import { defineStore } from "pinia";
import { ref } from "vue";
export const useCounterStore = defineStore("counter", () => {
  const counter = ref(0);

  function increase() {
    counter.value++;
  }
  function decrease() {
    counter.value--;
  }

  return { counter, increase, decrease };
});
